package org.pp.smart.util;

import org.pp.smart.entity.Constants;
import org.pp.smart.entity.EventItem;

public class CommandMapper {
	public static String mapCommand(EventItem item){
		String command = String.format(Constants.CMD_SENDEVENT_TMP,
				item.getDeviceId(), item.getType(), item.getCode(),
				item.getValue());
		return command;
	}
}
